   //
//  Macros.h
//  LessonAdvanceUI01
//
//  Created by lanou3g on 15/9/28.
//  Copyright (c) 2015年 李云飞. All rights reserved.
//

#ifndef YYPHSpeedJump_Macros_h
#define YYPHSpeedJump_Macros_h


#endif
#define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  [[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch]
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

#define kColors(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define kWidthScale [UIScreen mainScreen].bounds.size.width/375
#define kHeightScale [UIScreen mainScreen].bounds.size.height/667

#define kTime 1200  // 每场20分钟
#define kPriceChange(price, min) price/6000/min   // 每次降价
#define kCachePath NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).lastObject

// http://121.42.156.174:8080/speedJump2/ 外网服务器
// http://192.168.1.199:8080/speedJump/ 本地服务器
// http://139.129.9.107/speedjump1/ 测试服务器
#define kBaseUrl @"http://139.129.9.107/speedjump1/"

#define kPayNotifyUrl @"http://139.129.9.107/speedjump1/alipayNotify.do"

#define kNewBaseUrl @"http://139.129.9.107/speedjump2/"

#define kNativeUrl @"http://192.168.1.199:8080/speedJump"
//个人信息
#define kUserInfoUrl @"/user.do?cmd=update_user_info"
// 速降首页
#define kSJHomeUrl @"/app.do?cmd=main_page"
// 晒单首页
#define kSDHomeUrl @"/app.do?cmd=shaidan_list"
// 心愿单

#define kXYHomeUrl @"/app.do?cmd=wish_list"
#define kMYXYUrl @"/user.do?cmd=my_wish_list"

// 我参与的心愿列表
#define kJoinXYUrl @"/user.do?cmd=list_wish_user"


//收货地址列表
#define kAddressUrl @"/user.do?cmd=addr_list"
#define kAddressEdit @"/user.do?cmd=modify_addr"
#define kAddressAddr @"/user.do?cmd=add_addr"
#define kAddressDele @"/user.do?cmd=delete_addr"

// #define kSJBuyUrl @"http://192.168.1.199:8080/speedJump/user.do?cmd=buy&u=8&commodity_id=1&period_id=1422&price=4200"

// 购买订单
#define kSJOrderUrl @"/user.do?cmd=buy"


// 首页期望数量  http://192.168.1.199:8080/speedJump/user.do?cmd=onlook&u=X&commodity_id=X&period_id=X
#define kExpectUrl @"/user.do?cmd=onlook"

// 首页点赞
#define kLikeUrl @"/user.do?cmd=pro_comment_in_main_page"

#define kDetailUrl @"/user.do?cmd=current_period_detail_page"

// 心愿点赞
#define kXYPraiseUrl @"/user.do?cmd=pro_wish"

// 晒单点赞
#define kSDPraiseUrl @"/user.do?cmd=pro_shaidan"
// 首页发布评论
// /user.do?
#define kCommentUrl @"/user.do?cmd=make_comment_in_main_page"

// 详情界面提交评论
#define kDetailCommUrl @"/user.do?cmd=make_comment_in_detail_page"

#define kDetailZan @"/user.do?cmd=pro_comment_in_detail_page"

// 获取验证码
#define kInvate_code @"/app.do?cmd=get_reg_sms_code"

#define kForgetInvate @"/app.do?cmd=get_forgotten_sms_code"
// 手机号注册
// &phone=XXXX&sms_code=888880&password=XXXXXX&invite_code=XXXX
#define kRegistUrl @"/app.do?cmd=reg_user_by_phone"


// 手机号登录
#define kLoginUrl @"/app.do?cmd=login_by_phone"
//忘记密码
#define kForgetOK @"/user.do?cmd=change_password_by_sms_code"
//修改密码


// 24. 用户分享获取积分
// /user.do?cmd=share_integral&u=X
#define kShareUrl @"/user.do?cmd=share_integral"

// 25. 用户设置订单收货地址
// /user.do?cmd=deal_set_addr&deal_id=XXX&u=X&address_id=X
#define kSetAddr @"/user.do?cmd=deal_set_addr"
// 26. 用户修改密码
// /user.do?cmd=change_password&phone=1&u=1&old_password=a&new_password=b
#define kChangePassword @"/user.do?cmd=change_password"

#define kInvation @"/app.do?cmd=valid_invite_code"

#define kModifyPWUrl @"/user.do?cmd=change_password"

// 27 进场检测
// /user.do?cmd=join_question&u=X&period_id=X
#define kCheckUrl @"/user.do?cmd=join_question" // 检查是否有券
#define kJoinUrl @"/user.do?cmd=join"

// /user.do?cmd=join


// 31.下单检测
// /user.do?cmd=deal_question&u=39&period_id=1908
#define kDealCheck @"/user.do?cmd=deal_question"
// 32.下单-通过优惠券
// /user.do?cmd=do_deal&u=39&period_id=1908&commodity_id=19&price=158.99&deal_by=1
#define kDealOrder @"/user.do?cmd=do_deal"  // 确认购买

// /user.do?cmd=pay_by_wallet&u=39&deal_id=2016011215493039191909&period_id=1909&price=777.9

#define kYEPayUrl @"/user.do?cmd=pay_by_wallet"

// 20. 订单列表
// /user.do?cmd=deal_list&u=X&deal_type=(1,2,3) 1-未付款+违规 2-代发货+已付款 3-待收货+待晒单
#define kDealListUrl @"/user.do?cmd=deal_list" 
#define kTicketsList @"/user.do?cmd=my_tickets"

// 	/user.do?cmd=my_shaidan&u=X&page=X
#define kMyShareList @"/user.do?cmd=my_shaidan"
#define kRelevantUrl @"/app.do?cmd=wish_about"
//速降历史记录
#define kHistoryUrl @"/app.do?cmd=speedjump_history"

#define kPropertyUrl @"/app.do?cmd=properties"

#define APP_URL @"http://itunes.apple.com/lookup?id=938064496"

#define kWishCommentUrl @"/app.do?cmd=wish_comment"

#define kWishHistoryUrl @"/app.do?cmd=finished_wish_list"

#define kMyInfoUrl @"/user.do?cmd=my_info"
